let arr:string[] = []         // 字符串数组
arr.push('abc')
arr.push('123')

let arr2:Array<number> = []   // 泛型数组
arr2.push(123)
arr2.push(10)

console.log(arr, arr2)

